﻿using System;
using System.Linq;
using SampleApp.Domain;
using SampleApp.Data;
using System.Collections.Generic;
using COM.Data;
using COM.Service;

namespace SampleApp.Service
{
    public class RuntimeService : IRuntimeService
    {
        private IUnity unity;
        public RuntimeService(IUnity unity)
        {
            this.unity = unity;
        }

        public IPermissionService Permission
        {
            get
            {
                return this.unity.GetService<IPermissionService>();
            }
        }


        public IUnitOfWork UnitOfWork
        {
            get
            {
                return this.unity.GetService<IUnitOfWork>();
            }
        }


        public IAppLogService AppLog
        {
            get
            {
                return this.unity.GetService<AppLogService>();
            }
        }


    }
}
